const usersManage = () => import('@/pages/system-manage/users-manage')
const menuConfig = () => import('@/pages/system-manage/menu-config')
// const deptManage = () => import('@/pages/dept-manage')
const roleManage = () => import('@/pages/system-manage/role-manage')
const subjectStatus = () => import('@/pages/build-manage/subject-status')
const projectList = () => import('@/pages/build-manage/project-list')
const company = () => import('@/pages/system-manage/company')
const eCRFDesign = () => import('@/pages/build-manage/eCRF-design')
const variableConfig = () => import('@/pages/build-manage/variable-config')
const dictionary = () => import('@/pages/system-manage/dictionary-manage')
const dictionaryItem = () => import('@/pages/system-manage/dictionary-manage/components/detail.vue')
const interfacialDesign = () => import('@/pages/build-manage/interfacial-design')
const laboratoryMapping = () => import('@/pages/build-manage/laboratory-mapping')
const generalCoding = () => import('@/pages/encoding/general')
// 版本管理
const solutionVersion = () => import('@/pages/version-manage/solution-version')
const eCRFVersion = () => import('@/pages/version-manage/ecrf-version')
const DatabaseVersion = () => import('@/pages/version-manage/database-version')
const DVPVersion = () => import('@/pages/version-manage/dvp-version')
const embeddedCoding = () => import('@/pages/encoding/embedded')
const automaticValue = () => import('@/pages/build-manage/automatic-value')
const checkTypeConfig = () => import('@/pages/system-config/check-type')
const visitDesign = () => import('@/pages/build-manage/visit-design')
const processdesign = () => import('@/pages/build-manage/visit-design/component/Processdesign')
const checkSetting = () => import('@/pages/build-manage/check-setting')
const functionParams = () => import('@/pages/system-config/function-params')
const subjectParams = () => import('@/pages/build-manage/subject-params')
const embeddedDesign = () => import('@/pages/build-manage/embedded-design')

const routes = {
  usersManage: {
    path: 'users-manage',
    name: '用户管理',
    component: usersManage,
  },
  menuConfig: {
    path: 'menu-config',
    name: '菜单管理',
    component: menuConfig,
  },

  roleManage: {
    path: 'role-manage',
    name: '角色管理',
    component: roleManage,
  },
  subjectStatus: {
    path: 'subject-status',
    name: '受试者状态',
    component: subjectStatus,
  },
  projectList: {
    path: 'project-list',
    name: 'EDC项目管理',
    component: projectList,
  },
  company: {
    path: 'company',
    name: '公司列表',
    component: company,
  },
  eCRFDesign: {
    path: 'eCRFDesign',
    name: '表单设计',
    component: eCRFDesign,
  },
  variableConfig: {
    path: 'variableConfig',
    name: '变量配置',
    component: variableConfig,
  },
  dictionary: {
    path: 'dictionary-manage',
    name: '字典管理',
    component: dictionary,
  },
  dictionaryItem: {
    path: 'dictionary-item',
    component: dictionaryItem,
  },
  interfacialDesign: {
    path: 'interfacial-design',
    name: '界面设计',
    component: interfacialDesign,
  },
  laboratoryMapping: {
    path: 'laboratory-mapping',
    name: '实验室正常值映射',
    component: laboratoryMapping,
  },
  // 版本管理
  solutionVersion: {
    path: 'solutionVersion',
    name: '方案版本',
    component: solutionVersion,
  },
  eCRFVersion: {
    path: 'eCRFVersion',
    name: 'eCRF版本',
    component: eCRFVersion,
  },
  DVPVersion: {
    path: 'DVPVersion',
    name: 'DVP版本',
    component: DVPVersion,
  },
  DatabaseVersion: {
    path: 'DatabaseVersion',
    name: '数据库版本',
    component: DatabaseVersion,
  },
  generalCoding: {
    path: 'encoding/general',
    name: '一般编码',
    component: generalCoding,
  },
  embeddedCoding: {
    path: 'encoding/embedded',
    name: '内嵌编码',
    component: embeddedCoding,
  },
  automaticValue: {
    path: 'automatic-value',
    name: '自动取值',
    component: automaticValue,
  },
  checkTypeConfig: {
    path: 'system-config/check-type',
    name: '核查类型配置表',
    component: checkTypeConfig,
  },
  visitDesign: {
    path: 'visitDesign',
    name: '访视设计',
    component: visitDesign,
  },
  processdesign: {
    path: 'processdesign',
    name: '访视流程设计',
    component: processdesign,
  },
  checkSetting: {
    path: 'checkSetting',
    name: '核查设置',
    component: checkSetting,
  },
  functionParams: {
    path: 'function-params',
    name: '功能参数',
    component: functionParams,
  },

  subjectParams: {
    path: 'subject-params',
    name: '受试者参数',
    component: subjectParams,
  },

  embeddedDesign: {
    path: 'embedded-design',
    name: '内嵌设计',
    component: embeddedDesign,
  },
}
export default routes
